<?php
function extern(&$timers){
	$data = array();
	foreach($timers as &$thread){
		$r = JobPollAsync($thread);
		echo date("[H:i:s] d-m-Y").": RESPONSE:".$r."\n";
		if ($r !== false && $r != ""){
			$tmp = explode("\n",$r);
			foreach($tmp as &$tmp){
				$tmp2 = explode(" ",$tmp);
				if($tmp2[0] == "PRIVMSG"){
					flush(); @ob_flush();
					$data[] = $tmp;
				}
			}
		}
	}
	return $data;
}
?>